<?php
class Rulemanager_Model_Deleterule implements Rulemanager_Model_Mainable{
    
    private $excepted_result = 1;
    private $current_result;
    private $rulemanager_data_deleterule;
    
    public function main(array $variables = null) {
        $this->rulemanager_data_deleterule = new Rulemanager_Data_Deleterule;
        $this->current_result = $this->rulemanager_data_deleterule->main($variables);
        if(
                $this->current_result == $this->excepted_result
                ){
            header("Location: ".SITE_ROOT."zarzadzaj-rolami.html");
        }
        else {
            header("Location: ".SITE_ROOT."zarzadzaj-rolami.html");
        }
    }
    
}
